﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Common.Library;
using OnlineVideos;
using OnlineMovies;
using OnlineVideos.UI;
using OnlineVideos.Utilities;
using Common.Utilities;

namespace OnlineMovies.Views
{
    public partial class MusicHistory : PhoneApplicationPage
    {
        #region Constructor
        public MusicHistory()
        {
            InitializeComponent();               
            Loaded += new RoutedEventHandler(MusicHistory_Loaded);
        }
        #endregion

        #region PageLoad
        void MusicHistory_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                FlurryWP8SDK.Api.LogEvent("MusicHistory Page", true);
            }
            catch (Exception ex)
            {

                Exceptions.SaveOrSendExceptions("Exception in MusicHistory_Loaded Method In MusicHistory.cs file.", ex);
            }
        }
        #endregion
        protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
        {
            try
            {
                FlurryWP8SDK.Api.EndTimedEvent("MusicHistory Page");
            }
            catch (Exception ex)
            {

                Exceptions.SaveOrSendExceptions("Exception in OnNavigatedFrom Method In MusicHistory.cs file.", ex);
            }
        }
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            try
            {
                FlurryWP8SDK.Api.LogPageView();
            }
            catch (Exception ex)
            {

                Exceptions.SaveOrSendExceptions("Exception in OnNavigatedTo Method In MusicHistory.cs file.", ex);
            }
        }
        #region Events
        private void imgTitle_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
         {
             NavigationService.Navigate(NavigationHelper.MainPanoramaPage);
         }
        #endregion
    }
}